package com.zzyl.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzyl.base.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "项目任务关联Dto")
public class ProjectPlansDto extends BaseDto {
    @ApiModelProperty(value = "执行周期 0 天 1 周 2月", example = "0")
    private Integer executeCycle;

    @ApiModelProperty(value = "执行频次", example = "0")
    private Integer executeFrequency;

    @ApiModelProperty(value = "计划执行时间")
    @JsonFormat(pattern = "HH:mm")
    private LocalTime executeTime;

    @ApiModelProperty(value = "计划ID", example = "0")
    private Long planId;

    @ApiModelProperty(value = "项目ID", example = "0")
    private Long projectId;
}
